-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(appsync-modelgen-plugin): add support for generation route definitions #869
Conversation
packages/appsync-modelgen-plugin/src/visitors/appsync-model-introspection-visitor.ts
Show resolved
Hide resolved
packages/appsync-modelgen-plugin/src/interfaces/introspection/model-schema.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comment. If applicable, can followup in subsequent PR
} | ||
`; | ||
|
||
const generationDirective: Directive = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should pull this from the directives package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this can be removed once the new version of @aws-amplify/graphql-directives
is released.
Description of changes
generations
key to model introspection schema.@generation
directive) from populating existingqueries
key in MIS; instead assigns them to the newgenerations
key.Codegen Paramaters Changed or Added
N/A
Issue #, if available
N/A
Description of how you validated changes
Checklist
yarn test
passesRelevant documentation is changed or added (and PR referenced)Docs PRs are WIPChanges are tested using sample applications for all relevant platforms (iOS/android/flutter/Javascript) that use the feature added/modifiedChanges are tested on windows. Some Node functions (such aspath
) behave differently on windows.type
,input
,enum
,interface
,union
and scalar types.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.